package com.xiaolin.admin.utils;

/**
 * @author xiaolin
 * @description 耗时计算工具类
 * @since 2024/10/23
 */
public class ComputingTimeUtil {
    public static long getStartTime() {
        return System.currentTimeMillis();
    }

    public static long getEndTime() {
        return System.currentTimeMillis();
    }

    public static void printSeconds(String tip, long startTime, long endTime) {
        System.out.println(tip + ((endTime - startTime) / 1000) + "秒！");
    }
}
